<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
	<model>
		<instance>
			<provider name="PayPalPro" validGroups="all" validCurrencies="GBP" class="PayPalPro">
				<description value="Pay by Credit Card (PayPal Pro)"/>
				<currency value="GBP"/>
				<cardsAccepted value="MasterCard:Master Card,VISA:Visa,Delta:Delta,Solo:Solo,Switch/Maestro:Switch"/>
        <apiUsername value="trevor_1261070496_biz@eonic.co.uk"/>
        <apiPassword value="1261070605"/>
        <apiSignature value="A4m3KxoRe0qrA96SgRhyNzsfS.dQABUZcuZ6tM6z1aiNQKkgmEfCsVJe"/>
				<opperationMode value="true"/>
				<transactionType value="defer"/>
				<validateAddress value="on"/>
				<validateCV2 value="on"/>
				<secure3d value="off"/>
        <centinalProcessorId value="134-01" />
        <centinalCurrencyCode value="826" />
        <centinalMerchantId value="trevor@eonic.co.uk" />
        <centinalTransactionPwd value="soNIC14" />
        <centinalURL value="https://centineltest.cardinalcommerce.com/maps/txns.asp" />
        <centinalTimeout value="20000" />
			</provider>
		</instance>
		<submission id="EditContent" action="" method="post" event="return form_check(this)"/>
		<bind nodeset="provider">
			<bind id="description" nodeset="description/@value" required="true()" type="string"/>
			<bind id="accountId" nodeset="apiUsername/@value" required="true()" type="string"/>
			<bind id="accountPassword" nodeset="apiPassword/@value" required="true()" type="string"/>
			<bind id="accountSignature" nodeset="apiSignature/@value" required="true()" type="string"/>
			<bind id="currency" nodeset="currency/@value" required="true()" type="string"/>
			<bind id="cardsAccepted" nodeset="cardsAccepted/@value" required="true()" type="string"/>
			<bind id="opperationMode" nodeset="opperationMode/@value" required="true()" type="string"/>
			<bind id="transactionType" nodeset="transactionType/@value" required="true()" type="string"/>
			<bind id="validateAddress" nodeset="validateAddress/@value" required="true()" type="string"/>
			<bind id="validateCV2" nodeset="validateCV2/@value" required="true()" type="string"/>
			<bind id="secure3d" nodeset="secure3d/@value" required="true()" type="string"/>
      <bind id="centinalProcessorId" nodeset="centinalProcessorId/@value" required="true()" type="string"/>
      <bind id="centinalCurrencyCode" nodeset="centinalCurrencyCode/@value" required="true()" type="string"/>
      <bind id="centinalMerchantId" nodeset="centinalMerchantId/@value" required="true()" type="string"/>
      <bind id="centinalTransactionPwd" nodeset="centinalTransactionPwd/@value" required="true()" type="string"/>
      <bind id="centinalURL" nodeset="centinalURL/@value" required="true()" type="string"/>
      <bind id="centinalTimeout" nodeset="centinalTimeout/@value" required="true()" type="string"/>
		</bind>
	</model>
	<group ref="EditContent">
    <label>PayPal Pro Settings</label>
    <group class="inline">
      <label>PayPal Account</label>
		<input bind="description" class="long">
			<label>Description</label>
		</input>
		<input bind="accountId">
			<label>API Username</label>
		</input>
		<input bind="accountPassword">
			<label>API Password</label>
		</input>
		<input bind="accountSignature">
			<label>API Signature</label>
		</input>
		<input bind="currency">
			<label>Default Currency</label>
		</input>
		<textarea bind="cardsAccepted" rows="4" cols="60">
			<label>CardsAccepted</label>
		</textarea>
		<select1 bind="opperationMode" appearance="full" class="required">
			<label>Opperation Mode</label>
			<item>
				<label>Live</label>
				<value>live</value>
			</item>
			<item>
				<label>Test</label>
				<value>true</value>
			</item>
			<item>
				<label>Test False</label>
				<value>false</value>
			</item>
		</select1>
		<select1 bind="transactionType" appearance="full" class="required">
			<label>Transaction Type</label>
			<item>
				<label>Defer</label>
				<value>defer</value>
			</item>
			<item>
				<label>Full</label>
				<value>full</value>
			</item>
		</select1>
		<select1 bind="validateAddress" appearance="full" class="required">
			<label>Validate Address</label>
			<item>
				<label>Yes</label>
				<value>on</value>
			</item>
			<item>
				<label>No</label>
				<value>off</value>
			</item>
		</select1>
		<select1 bind="validateCV2" appearance="full" class="required">
			<label>Validate CV2</label>
			<item>
				<label>Yes</label>
				<value>on</value>
			</item>
			<item>
				<label>No</label>
				<value>off</value>
			</item>
		</select1>
		<select1 bind="secure3d" appearance="full" class="required">
			<label>3D Secure</label>
			<item>
				<label>Yes</label>
				<value>on</value>
			</item>
			<item>
				<label>No</label>
				<value>off</value>
			</item>
		</select1>
    </group>
    <group class="inline">
      <label>Centinal 3D Secure Details</label>
      <div>
        <p>To use 3-D Secure with PayPal, you must do the following.</p>

        <ol>
          <li>Register your company with Cardinal Commerce and download and install the Cardinal Thin Client package.</li>
          <li>Insert processing for 3-D Secure into your application’s debit or credit card payment flow immediately before the direct payment API request.</li>
          <li>Add additional fields to the direct payment API request.</li>
          <li>Update your website with required 3-D Secure logos, status windows, and other information for your customers.</li>
          <li>Test your 3-D Secure integration using Cardinal’s testing facilities. PayPal’s Sandbox cannot be used for testing 3-D Secure functionality.</li>
        </ol>
        <a href="http://paypal3dsregistration.cardinalcommerce.com/UI/Registration.aspx" rel="external" class="btn btn-primary extLink">Click here to register with Cardinal Commerce</a>
      </div>
      <input bind="centinalProcessorId">
        <label>Centinal ProcessorId</label>
      </input>
      <input bind="centinalCurrencyCode">
        <label>Centinal CurrencyCode</label>
      </input>
      <input bind="centinalMerchantId">
        <label>Centinal MerchantId</label>
      </input>
      <input bind="centinalTransactionPwd">
        <label>Centinal TransactionPwd</label>
      </input>
      <input bind="centinalTimeout">
        <label>Centinal Timeout</label>
      </input>
      
      <select1 bind="centinalURL" appearance="full" class="required">
        <label>Centinal URL</label>
        <item>
          <label>Live (centinel.cardinalcommerce.com)</label>
          <value>https://centinel.cardinalcommerce.com/maps/txns.asp</value>
        </item>
        <item>
          <label>Test (centineltest.cardinalcommerce.com)</label>
          <value>https://centineltest.cardinalcommerce.com/maps/txns.asp</value>
        </item>
      </select1>
    </group>
		<submit submission="" ref="ewSubmit" class="principle">
			<label>Save Settings</label>
		</submit>
	</group>
</Content>
